.class public Les/ov;
.super Ljava/lang/Object;
.source "DirHandler.java"

# interfaces
.implements Les/tv;


# instance fields
.field private final a:Les/cw;

.field private final b:Ljava/util/concurrent/atomic/AtomicBoolean;


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Les/cw;

    invoke-direct {v0}, Les/cw;-><init>()V

    iput-object v0, p0, Les/ov;->a:Les/cw;

    .line 3
    new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V

    iput-object v0, p0, Les/ov;->b:Ljava/util/concurrent/atomic/AtomicBoolean;

    return-void
.end method


# virtual methods
.method public a(Les/bv;)V
    .locals 4

    .line 2
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "path LIKE "

    .line 3
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 4
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Les/fv;->d()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "%"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 5
    new-instance v1, Landroid/content/ContentValues;

    invoke-direct {v1}, Landroid/content/ContentValues;-><init>()V

    .line 6
    invoke-virtual {p1}, Les/fv;->a()I

    move-result p1

    const-string v2, "isNomedia"

    const/16 v3, 0xb

    if-ne p1, v3, :cond_0

    const/4 p1, 0x1

    .line 7
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {v1, v2, p1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    goto :goto_0

    :cond_0
    const/16 v3, 0xc

    if-ne p1, v3, :cond_1

    const/4 p1, 0x0

    .line 8
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {v1, v2, p1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 9
    :goto_0
    iget-object p1, p0, Les/ov;->a:Les/cw;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0, v1}, Les/dw;->a(Ljava/lang/String;Landroid/content/ContentValues;)V

    :cond_1
    return-void
.end method

.method public a(Les/gv;)V
    .locals 0

    return-void
.end method

.method public a(Les/hv;)V
    .locals 5

    .line 10
    invoke-virtual {p1}, Les/fv;->e()Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_1

    .line 11
    iget-object v0, p0, Les/ov;->b:Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 12
    iget-object v0, p0, Les/ov;->a:Les/cw;

    invoke-virtual {p1}, Les/hv;->g()Les/dw$c;

    move-result-object p1

    invoke-virtual {v0, p1}, Les/cw;->b(Les/dw$c;)V

    :cond_0
    return-void

    .line 13
    :cond_1
    invoke-virtual {p1}, Les/hv;->h()Les/dv;

    move-result-object v0

    .line 14
    instance-of v2, v0, Les/cv;

    if-eqz v2, :cond_4

    .line 15
    iget-object v2, p0, Les/ov;->b:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {v2, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    .line 16
    invoke-virtual {p1}, Les/fv;->d()Ljava/lang/String;

    move-result-object v2

    .line 17
    invoke-virtual {p1}, Les/fv;->a()I

    move-result v3

    const/4 v4, 0x3

    if-ne v3, v4, :cond_2

    .line 18
    iget-object p1, p0, Les/ov;->a:Les/cw;

    invoke-virtual {p1, v2}, Les/cw;->a(Ljava/lang/String;)V

    goto :goto_0

    .line 19
    :cond_2
    invoke-virtual {p1}, Les/fv;->a()I

    move-result p1

    if-ne p1, v1, :cond_3

    .line 20
    check-cast v0, Les/cv;

    .line 21
    iget-object p1, p0, Les/ov;->a:Les/cw;

    invoke-virtual {p1, v0}, Les/cw;->a(Les/cv;)V

    goto :goto_0

    .line 22
    :cond_3
    iget-object p1, p0, Les/ov;->a:Les/cw;

    invoke-virtual {p1, v2}, Les/cw;->e(Ljava/lang/String;)J

    move-result-wide v1

    .line 23
    invoke-virtual {v0, v1, v2}, Les/dv;->d(J)V

    .line 24
    iget-object p1, p0, Les/ov;->a:Les/cw;

    invoke-virtual {p1, v0}, Les/dw;->b(Les/dv;)V

    :cond_4
    :goto_0
    return-void
.end method

.method public a(Z)V
    .locals 0

    if-eqz p1, :cond_0

    .line 1
    iget-object p1, p0, Les/ov;->a:Les/cw;

    invoke-virtual {p1}, Les/dw;->c()V

    :cond_0
    return-void
.end method
